<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
xmlns:ui="http://java.sun.com/jsf/facelets" 
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:f="http://java.sun.com/jsf/core" 
xmlns:p="http://primefaces.org/ui" 
template="/WEB-INF/templates/general.xhtml">

 <ui:define name="title"><h:outputText value="Please Sign Up" /></ui:define>
        <ui:define name="header"><h:outputText value="Please Sign Up" /></ui:define>
        
        <ui:define name="content">
                <h:form id="signUpForm">
                        <p:fieldset styleClass="fieldset" legend="Registration Form">
                                <p:messages id="messages" />
                        
                                <h:panelGrid id="regPanelGrid" style="margin: 0 auto; margin-top: 25px; text-align: right" cellspacing="8" columns="3">

                                        <h:panelGroup>
                                                <h:outputText value="First Name:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                        <p:inputText id="firstName" label="First Name" value="#{student.firstName}" required="true" title="Enter your First Name!">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="firstName" styleClass="tooltip" showEvent="focus" hideEvent="blur" />

                                        <h:panelGroup>
                                                <h:outputText value="Last Name:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                        <p:inputText id="lastName" label="Last Name" value="#{student.lastName}" required="true" title="Enter your Last Name!">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="lastName" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="User Name:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                        <p:inputText id="userName" value="#{student.userName}" required="true" label="User Name" title="Enter your User Name!">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="userName" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter Password:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                        <p:password id="pass1" value="#{student.password}" required="true" label="Password" title="Please enter a password!" feedback="true" match="pass2">
                                                <f:validateLength minimum="2" />
                                        </p:password>
                                        <h:outputText value="" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Repeat Password:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                        <p:password id="pass2" required="true" label="Password" title="Please enter a password!" />
                                        <h:outputText value="" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter Address:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdAddress" value="#{student.stdAddress}" required="true" label="Student Address" title="Enter Student Address!">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdAddress" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter City:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdCity" value="#{student.stdCity}" required="true" label="Student City" title="Enter Student City">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdCity" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter State:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdState" value="#{student.stdState}" required="true" label="Student State" title="Enter Student State">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdState" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter Zipcode:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdZipcode" value="#{student.stdZipcode}" required="true" label="Student Zipcode" title="Enter Student Zipcode">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdZipcode" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter Country:" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdCountry" value="#{student.stdCountry}" required="true" label="Student Country:" title="Enter Student Country:">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdCountry" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter RollNo" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdRollNo" value="#{student.stdRollNo}" required="true" label="Student RollNo" title="Enter Student RollNo">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdRollNo" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        <h:panelGroup>
                                                <h:outputText value="Enter EmailId" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdEmailId" value="#{student.stdEmailId}" required="true" label="Student EmailId" title="Enter Student EmailId">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdEmailId" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter LandLine" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdLandLine" value="#{student.stdLandLine}" required="true" label="Student LandLine" title="Enter Student LandLine">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdLandLine" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter Mobile" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdMobile" value="#{student.stdMobile}" required="true" label="Student Mobile" title="Enter Student Mobile">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdMobile" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter EntranceTest" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdEntranceTest" value="#{student.stdEntranceTest}" required="true" label="Student EntranceTest" title="Enter Student EntranceTest">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdEntranceTest" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <h:panelGroup>
                                                <h:outputText value="Enter Catagory" />
                                                <h:outputText style="color:red" value="*  " />
                                        </h:panelGroup>
                                         <p:inputText id="stdCatagory" value="#{student.stdCatagory}" required="true" label="Student Catagory" title="Enter Student Catagory">
                                                <f:validateLength minimum="2" />
                                        </p:inputText>
                                        <p:tooltip for="stdCatagory" styleClass="tooltip" showEvent="focus" hideEvent="blur" />
                                        
                                        <p:commandButton id="backToSignIn" action="backToSignIn" immediate="true" icon="ui-icon-arrowreturnthick-1-w" value="Back to Sign In" />
                                        <p:commandButton id="submitButton" action="confirmSignUp" update="regPanelGrid,messages" icon="ui-icon-check" value="Sign Up" />
                                        
                                </h:panelGrid>
                        </p:fieldset>
                </h:form>
        </ui:define>

</ui:composition>